package com.zhentao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.model.wemedia.dto.NewsAuthDto;
import com.zhentao.model.wemedia.pojo.WmNews;
import com.zhentao.model.wemedia.vo.WmNewsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: WmNewsMapper
 * @Author: 振涛教育_小T
 * @Date: 2024/12/25 14:35
 */
@Mapper
public interface WmNewsMapper extends BaseMapper<WmNews> {
    void updateEnable(@Param("enable") Short enable, @Param("id") Integer id);

    List<WmNewsVo> findListAndPage(@Param("dto") NewsAuthDto dto);

    int findListCount(@Param("dto") NewsAuthDto dto);
}
